Test your drawTriangle() function by calling it from the JavaScript console.